package top.tangyh.lamp.care.vo.result;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.lamp.care.entity.BHl7YzYaoPlan;

import java.math.BigDecimal;

/**
 * @Author:
 * @Date:
 */
@Data
public class ExeYaoShortOutVO {

    private Long id;

    @Schema(description ="药名")
    private String medication;

    @Schema(description ="药品剂量")
    private String amount;

    @Schema(description ="剂量单位")
    private String amountUnit;


    @Schema(description ="打印剂量")
    private String dyAmount;

    @Schema(description ="打印剂量单位")
    private String dyAmountUnit;

    @Schema(description ="药品规格")
    private String spec;

    @Schema(description ="液体量")
    private BigDecimal ytCount;

    @Schema(description ="是否为主药")
    private Integer isMaster;



    public ExeYaoShortOutVO(BHl7YzYaoPlan yaoPlanPO) {
        this.id = yaoPlanPO.getId();
        this.medication = yaoPlanPO.getMedication();
        this.amount = yaoPlanPO.getAmount();
        this.amountUnit = yaoPlanPO.getAmountUnit();
        this.spec = yaoPlanPO.getSpec();
        this.ytCount = yaoPlanPO.getYtCount();
        this.isMaster = yaoPlanPO.getIsMaster();
        this.dyAmount = yaoPlanPO.getDyAmount();
        this.dyAmountUnit = yaoPlanPO.getDyAmountUnit();
    }

}
